<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录[[${projectName}]]</title>
<meta name="description" content="[[${projectName}]]">
<link href="../static/css/bootstrap.min.css"
	th:href="@{/css/bootstrap.min.css}" rel="stylesheet" />
<link href="../static/css/style.css" th:href="@{/css/style.css}"
	rel="stylesheet" />
<link href="../static/js/plugins/layui-v2.5.4/css/layui.css"
	th:href="@{/js/plugins/layui-v2.5.4/css/layui.css}" rel="stylesheet" />
<link href="../static/css/login.min.css" th:href="@{/css/login.min.css}"
	rel="stylesheet" />
<link href="../static/xscrum/css/x-ui.css"
	th:href="@{/xscrum/css/x-ui.css?v=4.1.0}" rel="stylesheet" />
<!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
<link rel="shortcut icon" href="../static/favicon.ico"
	th:href="@{favicon.ico}" />
<style type="text/css">
label.error {
	position: inherit;
}
</style>
<script>
        if(window.top!==window.self){window.top.location=window.location};
    </script>
<style>
html, body {
	width: 100%;
	height: 100%;
	overflow: hidden
}

body {
	background: #009688;
}

body:after {
	content: '';
	background-repeat: no-repeat;
	background-size: cover;
	-webkit-filter: blur(3px);
	-moz-filter: blur(3px);
	-o-filter: blur(3px);
	-ms-filter: blur(3px);
	filter: blur(3px);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
}

.layui-container {
	width: 100%;
	height: 100%;
	overflow: hidden
}

.admin-login-background {
	width: 360px;
	height: 300px;
	position: absolute;
	left: 50%;
	top: 40%;
	margin-left: -180px;
	margin-top: -100px;
}

.logo-title {
	text-align: center;
	letter-spacing: 2px;
	padding: 14px 0;
}

.logo-title h1 {
	color: #009688;
	font-size: 25px;
	font-weight: bold;
}

.login-form {
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	padding: 14px 20px;
	box-shadow: 0 0 8px #eeeeee;
}

.login-form .layui-form-item {
	position: relative;
}

.login-form .layui-form-item label {
	position: absolute;
	left: 1px;
	top: 1px;
	width: 38px;
	line-height: 36px;
	text-align: center;
	color: #d2d2d2;
}

.login-form .layui-form-item input {
	padding-left: 36px;
}

.captcha {
	width: 60%;
	display: inline-block;
}

.captcha-img {
	display: inline-block;
	width: 34%;
	float: right;
}

.captcha-img img {
	height: 34px;
	border: 1px solid #e6e6e6;
	height: 36px;
	width: 100%;
}
</style>
</head>
<body>
	<div class="layui-container">
		<div class="admin-login-background">
			<div class="layui-form login-form">
				<form id="signupForm" class="layui-form">
					<div class="layui-form-item logo-title">
						<h1>[[${projectName}]]</h1>
					</div>
					<div class="layui-form-item">
						<label class="layui-icon layui-icon-username" for="username"></label>
						<input type="text" name="username" class="form-control uname"
							placeholder="用户名" />
					</div>
					<div class="layui-form-item">
						<label class="layui-icon layui-icon-password" for="password"></label>
						<input type="password" name="password" class="form-control pword"
							placeholder="密码" />
					</div>
					<div class="layui-form-item" th:if="${captchaEnabled==true}">
						<label class="layui-icon layui-icon-vercode" for="captcha"></label>
						<input type="text" name="validateCode" id="validateCode"
							placeholder="图形验证码" autocomplete="off"
							class="layui-input verification captcha">
						<div class="captcha-img">
							<a href="javascript:void(0);" rel="external nofollow"
								title="点击更换验证码"> <img
								th:src="@{captcha/captchaImage(type=${captchaType})}"
								class="imgcode" width="85%" alt="更换验证码" />
							</a>
						</div>
					</div>
					<div class="layui-form-item"
						th:classappend="${captchaEnabled==false} ? 'm-t'">
						<input type="checkbox" name="rememberMe" value="true"
							lay-skin="primary" title="记住密码">
					</div>
					<div class="layui-form-item">
						<button class="btn btn-success btn-block" id="btnSubmit"
							data-loading="正在验证登录，请稍后...">登录</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; </script>

	<!-- 全局js -->
	<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
	<script src="../static/js/bootstrap.min.js"
		th:src="@{/js/bootstrap.min.js}"></script>
	<!-- 验证插件 -->
	<script src="../static/ajax/libs/validate/jquery.validate.min.js"
		th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
	<script src="../static/ajax/libs/validate/messages_zh.min.js"
		th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
	<script src="../static/ajax/libs/layer/layer.min.js"
		th:src="@{/ajax/libs/layer/layer.min.js}"></script>
	<script src="../static/ajax/libs/blockUI/jquery.blockUI.js"
		th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
	<script
		src="../static/js/plugins/jq-module/jquery.particleground.min.js"
		th:src="@{/js/plugins/jq-module/jquery.particleground.min.js}"></script>
	<script src="../static/xscrum/js/x-ui.js"
		th:src="@{/xscrum/js/x-ui.js?v=4.1.0}"></script>

	<script src="../static/xscrum/login.js" th:src="@{/xscrum/login.js}"></script>


	<script type="text/javascript">
	// 粒子线条背景
	$(document).ready(function() {
		$('.layui-container').particleground({
			dotColor : '#5cbdaa',
			lineColor : '#5cbdaa'
		});
	});
</script>
</body>
</html>